package com.jxl.domain.convert;

import com.jxl.domain.entity.SubjectAnswerBO;
import com.jxl.domain.entity.SubjectInfoBO;
import com.jxl.infra.basic.entity.SubjectInfo;
import com.jxl.infra.basic.entity.SubjectJudge;
import com.jxl.infra.basic.entity.SubjectMultiple;
import com.jxl.infra.basic.entity.SubjectRadio;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectAnswerConvert {

    SubjectAnswerConvert INSTANCE = Mappers.getMapper(SubjectAnswerConvert.class);

    /**
     * 单选转换
     * @param subjectAnswerBO
     * @return
     */
    List<SubjectRadio> convertBOToSubjectInfo(List<SubjectAnswerBO> subjectAnswerBO);

    /**
     * 多选的转换
     * @param subjectAnswerBO
     * @return
     */
    List<SubjectMultiple> convertBOToSubjectMutiple(List<SubjectAnswerBO> subjectAnswerBO);

    /**
     * 判断的转换
     * @param subjectAnswerBO
     * @return
     */
    SubjectJudge convertBOToSubjectJudge(SubjectAnswerBO subjectAnswerBO);


}
